﻿///<reference path='jquery-1.4.4-vsdoc.js'/>
$(function() {
var userForm = $("#userForm");
var tbs = userForm.children("table").children("tbody").children("tr").children("td");
userForm.validate({
    rules: {
    catagoryTxt: {
            required: true,
            minlength: 2,
            remote: {
                url: "../handlers/VerifyCatagoryName.ashx",     //后台处理程序 
                type: "post",               //数据发送方式 
                dataType: "json"           //接受数据格式    
            }
        }
    }
});

});

function validateCatagory(t) {
//    var userForm = $("#userForm");
//    var tbs = userForm.children("table").children("tbody").children("tr").children("td");
//    userForm.validate({
//        rules: {
//        catagory: {
//                required: true,
//                minlength: 2,
//                remote: {
//                    url: "../handlers/VerifyCatagoryName.ashx",     //后台处理程序 
//                    type: "post",               //数据发送方式 
//                    dataType: "json"           //接受数据格式    
//                }
//            }
//        }
//    });
//    if (userForm.validate().form()) {
//        $(t).siblings(".error").empty();
//    }
}
function addItem() { 

}
